package com.treasure.mall.biz.entity.marketing;

import com.treasure.mall.biz.entity.BasePO;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

/**
 *
 * <p> 关注红包记录
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.entity.marketing
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/8/31 1:38 下午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */

@Entity
@Table(name = "zb_user_subscribe_red_packet")
@Setter
@Getter
@Cacheable(false)
public class UserSubscribeRedPacketPO extends BasePO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 领取红包的用户
     */
    @Column(name = "rel_user_id")
    private Long userId;

    /**
     * 红包金额
     */
    @Column(name = "amount")
    private Double amount = 0d;

    /**
     * 是否使用过了
     */
    @Column(name = "is_used")
    private boolean used;


}
